package com.dxx.cloud.admin.module.request;

import com.dxx.cloud.admin.module.entity.GoodsEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author duh
 * @create 2018/12/28 14:10

 **/
@Schema(description = "添加商品请求体")
@Data
public class GoodsAddRequest extends GoodsEntity {
    @Schema(description="商户id",example="1")
    @NotNull
    private Long merId;

    @Schema(description="门店id",example="1")
    @NotNull
    private Long shopId;

    @Schema(description="类型id",example="1")
    @NotNull
    private Long typeId;

    @Schema(description="商品名称",example="1")
    @NotEmpty
    private String name;

    @Schema(description="序号",example = "1")
    private Integer orderNo;

    @Schema(description="创建者",example="admin")
    private String creator;

    @Schema(description="操作者",example="admin")
    private String operator;


}
